package com.sunday.factory.controller;

import com.sunday.factory.logger.Logger;
import com.sunday.factory.singletonDemo.HungrySingleton;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserController
 * @Author JiangHai
 * @Date 2021/9/5 13:50
 **/
@RestController
public class UserController {

    private Logger logger = new Logger();

    @GetMapping("log")
    public long write(){
        return HungrySingleton.getInstance().getId();
    }
}
